/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-02
 * Time: 10:37
 */

import java.util.Scanner;

public class test {
    public static void main1(String[] args) {
        //打印x的图案(n行n列)
        Scanner in = new Scanner(System.in);   //读取一整行
        while (in.hasNextInt()) {
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < n; j++) {
                    if (i == j || i + j == n - 1) {
                        System.out.print("*");
                    } else {
                        System.out.print(" ");   //其余空打上空格
                    }
                }
                System.out.println();    //换行
            }
        }
    }

    public static void main2(String[] args) {
        //计算1/1-1/2+1/3-1/4+1/5 …… + 1/99 - 1/100 的值
        double sum = 0;
        int ret = 1;
        for (int i = 1; i <= 100; i++) {
            sum += 1.0 / i * ret;  //正负轮流乘
            ret = -ret;


        }
        System.out.println(sum);

    }

    public static void main9(String[] args) {
        //逆序打印
        Scanner sc = new Scanner(System.in);
        int ret = sc.nextInt();
        while (ret != 0) {
            System.out.print(ret % 10 + " ");
            ret = ret / 10;
        }

    }

    public static void main4(String[] args) {
        System.out.println("请输入密码");
        String arr2 = "123456";
        Scanner sc = new Scanner(System.in);
        int i = 0;
        for (i = 0; i < 3; i++) {
            String arr1 = sc.nextLine();
            if (arr1.equals(arr2)) {
                System.out.println("登录成功");
                break;
            } else if (i == 2) {
                System.out.println("三次密码输入错误,退出程序");
                break;
            } else {
                System.out.println("密码错误,请重新输入");
            }


        }
    }

    public static int max2(int a, int b) {
        return Math.max(a, b);
    }

    public static void main(String[] args) {
        System.out.println("请输入两个数");
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int max = max2(a, b);
        int c = sc.nextInt();
        int max3 = max2(max,c);
        System.out.println(max3);
    }
}
